-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opa Authorization Handler for AspNetCore #5146
Opa Authorization Handler for AspNetCore #5146
Conversation
commit 857d7e4 Author: queil <queil@users.noreply.github.com> Date: Mon Jun 13 13:57:49 2022 +0100 Fix tests commit 541972a Merge: aca6c5d 7f79c08 Author: queil <queil@users.noreply.github.com> Date: Mon Jun 13 13:50:39 2022 +0100 Merge branch 'opa-auth' of github.com:AccountTechnologies/hotchocolate into opa-auth commit aca6c5d Author: queil <queil@users.noreply.github.com> Date: Wed Jun 8 16:18:16 2022 +0100 Formatting + missing ConfigureAwait commit bdf12c3 Author: queil <queil@users.noreply.github.com> Date: Tue Apr 5 15:04:16 2022 +0100 Tests tweaks commit 8de3562 Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 23:10:53 2022 +0100 Convert timeout to ms + clean up commit 06d29b3 Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 18:21:23 2022 +0100 Further refinement commit 764fbd1 Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 10:01:31 2022 +0100 Introduce policy result handlers commit 08ecbb9 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 20:10:52 2022 +0000 Configure await false commit 242059a Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 19:54:46 2022 +0000 Deleted redundant snapshots commit e97e2b7 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 19:43:02 2022 +0000 Added more tests commit 1ca4126 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 17:31:25 2022 +0000 fix: OPA result field serialization fix: mapping no default policy and policy not found responses commit 46363c2 Author: queil <queil@users.noreply.github.com> Date: Mon Jan 31 16:00:17 2022 +0000 fix: property fails deserializing in netcore3.1 chore: upgrade Opa commit 97777dd Author: queil <queil@users.noreply.github.com> Date: Mon Jan 10 18:34:53 2022 +0000 Make the first test pass commit c838c37 Author: queil <queil@users.noreply.github.com> Date: Wed Jan 5 01:42:59 2022 +0000 Iteration 3 commit b79d5d4 Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 23:21:55 2022 +0000 Iteration 2 commit a40dd0e Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 15:53:20 2022 +0000 Remove auto-created project commit ee47a03 Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 15:50:00 2022 +0000 Some initial works commit 7f79c08 Author: queil <queil@users.noreply.github.com> Date: Wed Jun 8 16:18:16 2022 +0100 Formatting + missing ConfigureAwait commit 00c810e Author: queil <queil@users.noreply.github.com> Date: Tue Apr 5 15:04:16 2022 +0100 Tests tweaks commit f3ea08b Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 23:10:53 2022 +0100 Convert timeout to ms + clean up commit 278f377 Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 18:21:23 2022 +0100 Further refinement commit acfbcd9 Author: queil <queil@users.noreply.github.com> Date: Tue Mar 29 10:01:31 2022 +0100 Introduce policy result handlers commit ec3c807 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 20:10:52 2022 +0000 Configure await false commit c9cda84 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 19:54:46 2022 +0000 Deleted redundant snapshots commit d79f385 Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 19:43:02 2022 +0000 Added more tests commit 279e2ee Author: queil <queil@users.noreply.github.com> Date: Wed Feb 2 17:31:25 2022 +0000 fix: OPA result field serialization fix: mapping no default policy and policy not found responses commit 8117bdb Author: queil <queil@users.noreply.github.com> Date: Mon Jan 31 16:00:17 2022 +0000 fix: property fails deserializing in netcore3.1 chore: upgrade Opa commit 59d9294 Merge: e43a74d ce10dd3 Author: queil <4584075+queil@users.noreply.github.com> Date: Mon Jan 31 15:32:48 2022 +0000 Merge branch 'ChilliCream:main' into opa-auth commit e43a74d Author: queil <queil@users.noreply.github.com> Date: Mon Jan 10 18:34:53 2022 +0000 Make the first test pass commit c05164f Author: queil <queil@users.noreply.github.com> Date: Wed Jan 5 01:42:59 2022 +0000 Iteration 3 commit 64074fc Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 23:21:55 2022 +0000 Iteration 2 commit 645a32f Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 15:53:20 2022 +0000 Remove auto-created project commit 32e375e Author: queil <queil@users.noreply.github.com> Date: Tue Jan 4 15:50:00 2022 +0000 Some initial works
Update OPA package in tests Remove 'default policy not found' tests (OPA does not support this in the /v1/data API)
@PascalSenn I think I am ready for a review. |
Hey sorry for the wait ... we will do the review this week. |
I will do a bit of reformatting so that it fits with the code-style. Looks great so far. |
I have merged it now into the V13 branch aka main. I will go over the interfaces before we do a final release. I think a couple could be internal .... I will ship the new package with preview 74 |
Hey @queil in the test is a reference to a local server and all tests seem always to fail. Can you containerize this server? So we can package it with squadron for the tests? |
Sure, it should be trivial. I'll take a look shortly. |
Awesome thank you |
OPA Server is already available as a Docker image. Does this work for you guys? https://hub.docker.com/r/openpolicyagent/opa/ Also, I'd probably should remove the embedded server from the tests though. |
Yes, lets package that up in squadron and then we can use the docker image in the tests. |
I will create an issue |
Implement authorization handler delegating authz to an OPA (Open Policy Agent) REST API endpoint. The handler should send a
POST
request to an OPA Data API endpoint.